package com.starlink.model.dtomapper;

import com.starlink.model.domain.SchoolbagPhaseDO;
import com.starlink.model.request.SchoolbagPhaseRequest;
import com.starlink.model.vo.SchoolbagPhaseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface SchoolbagPhaseDtoMapper {

    SchoolbagPhaseDtoMapper INSTANCE = Mappers.getMapper(SchoolbagPhaseDtoMapper.class);

    /**
    * DO to VO
    * @param schoolbagPhaseDO
    * @return
    */
    SchoolbagPhaseVO do2VO(SchoolbagPhaseDO schoolbagPhaseDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    SchoolbagPhaseDO request2DO(SchoolbagPhaseRequest request);
}
